/*
 * @Author: fengYM feng25321@163.com
 * @Date: 2023-10-10 10:39:01
 * @LastEditors: fengYM feng25321@163.com
 * @LastEditTime: 2023-10-13 15:02:31
 * @Description:我的页面
 */
import { apiRequest } from "../utils/request";
//个人用户信息
export function selectUserInfoByUserId(data: any): Promise<myTypes.myInfo> {
  return apiRequest({
    url: `/selectUserInfoByUserId.do`,
    method: "POST",
    data,
  });
}
// 修改头像
export function uploadHeadImg(data: any) {
  return apiRequest({
    url: `/uploadHeadImg.do`,
    method: "POST",
    data,
  });
}

// 修改昵称
export function updateUserNickName(data: any) {
  return apiRequest({
    url: `/updateUserNickName.do`,
    method: "POST",
    data,
  });
}
// 修改手机号
export function updateUserCell(data: any) {
  return apiRequest({
    url: `/updateUserCell.do`,
    method: "POST",
    data,
  });
}
// 修改登录密码
export function updateUserPsw(data: any) {
  return apiRequest({
    url: `/updateUserPsw.do`,
    method: "POST",
    data,
  });
}

// 修改支付密码
export function updateUserPayPsw(data: any) {
  return apiRequest({
    url: `/updateUserPayPsw.do`,
    method: "POST",
    data,
  });
}

// 绑定支付宝
export function updateUserAliPay(data: any) {
  return apiRequest({
    url: `/updateUserAliPay.do`,
    method: "POST",
    data,
  });
}
// 申请代理
export function addAgent(data: any) {
  return apiRequest({
    url: `/addAgent.do`,
    method: "POST",
    data,
  });
}

// 意见反馈
export function feedBack(data: any) {
  return apiRequest({
    url: `/feedBack.do`,
    method: "POST",
    data,
  });
}
// 消息列表
export function selectMsgLst(data: any): Promise<myTypes.msgList> {
  return apiRequest({
    url: `/selectMsgLst.do`,
    method: "POST",
    data,
  });
}

// 我的钱包
export function selectCashLst(data: any) {
  return apiRequest({
    url: `/selectCashLst.do`,
    method: "POST",
    data,
  });
}
// 我的收益
export function selectPointRecordLst(data: any) {
  return apiRequest({
    url: `/selectPointRecordLst.do`,
    method: "POST",
    data,
  });
}
// 我的朵值
export function selectCaptonLst(data: any) {
  return apiRequest({
    url: `/selectCaptonLst.do`,
    method: "POST",
    data,
  });
}
// 我的销售
export function selectFahuoOrderLst(data: any) {
  return apiRequest({
    url: `/selectFahuoOrderLst.do`,
    method: "POST",
    data,
  });
}
// 提现
export function userWithdraw(data: any) {
  return apiRequest({
    url: `/userWithdraw.do`,
    method: "POST",
    data,
  });
}

// 获取手机号信息
export function selectKeFuInfo() {
  return apiRequest({
    url: `/selectKeFuInfo.do`,
    method: "POST",
  });
}
